package PhamVanHien;

public class LTHDT_TAONV_GAME {
	public static void main(String[] args) {
		// 1. KHai bao doi tuong
		LTHDT_NVGAME SonGoKu;
		LTHDT_NVGAME CaDic;
		LTHDT_NVGAME SonGoHan;
		// 2. Khoi tao doi tuong
		SonGoKu = new LTHDT_NVGAME();
		CaDic = new LTHDT_NVGAME();
		SonGoHan = new LTHDT_NVGAME("Mr SonGoHan", 1000, "DaiBacDayLui", "Sung");
		// 3. Hien thi thong tin cho doi tuong ra ben ngoai
		System.out.println("------SonGoKu-------");
		System.out.println("Ten: " + SonGoKu.getTenNV());
		System.out.println("Cap Do: " + SonGoKu.getCapDo());
		System.out.println("Ki Nang: " + SonGoKu.getKiNang());
		System.out.println("Binh Khi: " + SonGoKu.getBinhKhi());

		System.out.println("------SonGoHan-------");
		System.out.println("Ten: " + SonGoHan.getTenNV());
		System.out.println("Cap Do: " + SonGoHan.getCapDo());
		System.out.println("Ki Nang: " + SonGoHan.getKiNang());
		System.out.println("Binh Khi; " + SonGoHan.getBinhKhi());

		// ham khoi dung ko cho goi truc tiep dk

		// Khoi tao co tham so cho SonGoKu

		SonGoKu = new LTHDT_NVGAME("SonGoKu", 1996, "Chat Chem", "Tay");

		System.out.println("------SonGoKu-------");
		System.out.println("Ten: " + SonGoKu.getTenNV());
		System.out.println("Cap Do: " + SonGoKu.getCapDo());
		System.out.println("Ki Nang: " + SonGoKu.getKiNang());
		System.out.println("Binh Khi; " + SonGoKu.getBinhKhi());

		// SD thuoc tinh set de thay doi thong tin cua doi tuong
		SonGoHan.setTenNV("SonGoHan");
		SonGoHan.setCapDo(1000);
		SonGoHan.setKiNang("Chem");
		SonGoHan.setBinhKhi("Kiem");
		
		System.out.println("------SonGoHan-------");
		System.out.println("Ten: " + SonGoHan.getTenNV());
		System.out.println("Cap Do: " + SonGoHan.getCapDo());
		System.out.println("Ki Nang: " + SonGoHan.getKiNang());
		System.out.println("Binh Khi: " + SonGoHan.getBinhKhi());
		
		//dac diem cua thuoc tinh so voi ham khoi tao: ham khoi tao thuc thi cac nghiep vu khac, thong qua hqm khoi tao phai thuc thi cac nhiem vu dk sinh ra
		//con` thuoc tinh chi can thay doi 1 so dac diem nhat dinh ko can thay do toan bo
		//5. thiet lap hanh vi cho cac doi tuong
		
		SonGoKu.Bay(100);
		SonGoHan.Bay(300);
		CaDic.Bay(1000);
	}

}
